package Char_stream_package;

import java.io.FileInputStream;
import java.io.IOException;

public class Char_stream_demo1 {
    public static void main(String[] args) throws IOException {
        /*
            字节流读取中文会出现乱码
         */

        FileInputStream fis = new FileInputStream("/Users/zhaoxiaoyong/Documents/Java/" +
                "IO_stream_project/Char_stream_module/src/rough_draft/a.txt");

        int b;

        while ((b = fis.read()) != -1) {
            System.out.print((char) b);
        }

        fis.close();
    }
}
